﻿using System.Collections.Generic;
using System.Linq;

namespace Tss.MagicWeb.Domain.Cards
{
    public static class PhysicalCardCollection
    {
        private static List<BasePhysicalCard> Items { get; set; }

        public static IQueryable<BasePhysicalCard> Query()
        {
            return Items.AsQueryable();
        }

        public static void Create(BasePhysicalCard item)
        {
            Items.Add(item);
        }

        public static void Update(BasePhysicalCard item)
        {
            return;
        }

        public static void Remove(BasePhysicalCard item)
        {
            Items.Remove(item);
        }

        static PhysicalCardCollection()
        {
            Items = new List<BasePhysicalCard>
                        {
                            new Swamp(), 
                            new RelentlessRats(),
                            new Forest(),
                            new GrizzlyBears(),
                        };
        }
    }
}
